//
//  QSHomeInterface.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/31.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseMessage.h"
#import "QSMessageListModel.h"
#import "QSNotificationModel.h"
#import "QSUserHomeItemModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface QSHomeInterface : NSObject
/**
* @brief 获取通知列表
*/
+ (void)getNotificationListWithPageIndex:(NSInteger)pageIndex
                                andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSNotificationModel *resultModel))block;


/**
 * @brief 通知详情
 * id 通知id
 */
+ (void)getNotificationDetailWithId:(NSInteger)notiId
                           andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
* @brief 获取消息列表
*/
+ (void)getMessageListWithPageIndex:(NSInteger)pageIndex
                                andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSMessageListModel *resultModel))block;


/**
 * @brief 消息已读
 * id 消息id
 */
+ (void)getMessageReadWithId:(NSString *)messageId
                           andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;


/**
* @brief 获取用户信息
*/
+ (void)getUserInfoAndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;


/**
* @brief 修改用户头像
*/
+ (void)changeUserInfoWithUserIcon:(NSString *)userIcon
                          AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;


/**
 * @brief 判断用户身份权限 返回item
 */
+ (void)getUserpermissionsAndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSUserHomeItemModel *result))block;


/**
 * @brief 得到当前用户的级别（签到和走访列表等权限）
 * 1为服务人员 2为组长 3为领导 4.领导不可签到
 */
+ (void)getUserLevelAndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
 * @brief 请求未读消息数量
 */
+ (void)getUnReadMessageNumandBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

@end

NS_ASSUME_NONNULL_END
